package com.ocom.common.request.web;

import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Data;

import javax.validation.constraints.Min;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.util.List;

@Data
public class ConsumeDetailRequest {

    @JsonProperty("comId")
    @Min(1L)
    @NotNull(message = "comId 不能为空")
    private Long comId;

    private Integer merchId;
    private String merchIds;

    private Integer pointId;

    private Integer reportType;

    private String deviceNo;

    private String orderNo;

    @JsonProperty("pName")
    private String pName;

    @JsonProperty("accountNo")
    private String accountNo;

    @JsonProperty("pCode")
    private String pCode;

    @JsonProperty("cardNo")
    private String cardNo;

    @JsonProperty("deptId")
    private Integer deptId;

    private String consState;

    @NotEmpty(message = "开始时间 不能为空")
    private String startTime;

    @NotEmpty(message = "结束时间 不能为空")
    private String endTime;

    @NotNull(message = "page 不能为空")
    private Integer page;

    @NotNull(message = "size 不能为空")
    private Integer size;


    //文件下载预生成Id
    private Integer id = 0;

    private Long userId;

    private Integer groupbyLv;


    private Integer ifRefund = -1;

    private Integer accTypeId=-1;
    private Integer mealNo=-1;
    private Integer orderType= 1;


    @JsonProperty("consStates")
    private List<Integer> consStates ;
    @JsonProperty("deptIds")
    private List<Integer> deptIds;
}
